package com.innovations.inn.mapper;

import com.innovations.inn.domain.ResearchInstitution;

import java.util.List;

/**
 * 科研机构Mapper接口
 *
 * @author dp
 * @date 2024-08-09
 */
public interface ResearchInstitutionMapper {
    /**
     * 查询科研机构
     *
     * @param institutionId 科研机构主键
     * @return 科研机构
     */
    ResearchInstitution selectResearchInstitutionByInstitutionId(Long institutionId);

    /**
     * 查询科研机构列表
     *
     * @param researchInstitution 科研机构
     * @return 科研机构集合
     */
    List<ResearchInstitution> selectResearchInstitutionList(ResearchInstitution researchInstitution);

    /**
     * 新增科研机构
     *
     * @param researchInstitution 科研机构
     * @return 结果
     */
    int insertResearchInstitution(ResearchInstitution researchInstitution);

    /**
     * 修改科研机构
     *
     * @param researchInstitution 科研机构
     * @return 结果
     */
    int updateResearchInstitution(ResearchInstitution researchInstitution);

    /**
     * 删除科研机构
     *
     * @param institutionId 科研机构主键
     * @return 结果
     */
    int deleteResearchInstitutionByInstitutionId(Long institutionId);

    /**
     * 批量删除科研机构
     *
     * @param institutionIds 需要删除的数据主键集合
     * @return 结果
     */
    int deleteResearchInstitutionByInstitutionIds(Long[] institutionIds);
}
